package com.sskj.jgxt.jd.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sskj.core.entity.BaseEntity;

@Table(name = "JD_JianDuJiLuRenYuan")
@Entity
public class JianDuJiLuRenYuan extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// 姓名
	private String name = "";

	// 头像图片路径
	private String avatar = "";

	// 钉钉员工ID
	private String emplId = "";

	// 监督系统ID
	private String userId = "";

	@JsonIgnore
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "jdjlId", nullable = true)
	private JianDuJiLu jdjl;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return the avatar
	 */
	public String getAvatar() {
		return avatar;
	}

	/**
	 * @return the emplId
	 */
	public String getEmplId() {
		return emplId;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param avatar
	 *            the avatar to set
	 */
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	/**
	 * @param emplId
	 *            the emplId to set
	 */
	public void setEmplId(String emplId) {
		this.emplId = emplId;
	}

	/**
	 * @return the jdjl
	 */
	@JSONField(serialize = false)
	public JianDuJiLu getJdjl() {
		return jdjl;
	}

	/**
	 * @param jdjl
	 *            the jdjl to set
	 */
	public void setJdjl(JianDuJiLu jdjl) {
		this.jdjl = jdjl;
	}

	/**
	 * @return the userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

}
